package ling.tengfei.service;

import link.tengfei.bean.AdminUser;
import link.tengfei.bean.GengralUser;
import link.tengfei.dao.UserRegisterDao;
import link.tengfei.dao.UserRegisterDaoImpl;

public class UserRegisterServiceImpl implements UserRegisterService {
	UserRegisterDao userRegisterDao = new UserRegisterDaoImpl();

	@Override
	public boolean findByUsername(String username) {
		return userRegisterDao.findByUsername(username);
	}

	@Override
	public int addGengralUser(GengralUser gengralUser) {
		return userRegisterDao.addGengralUser(gengralUser);
	}

	@Override
	public boolean findByUserId(String userId) {
		return userRegisterDao.findByUserId(userId);
	}

	@Override
	public boolean findByPassId(int passid) {
		return userRegisterDao.findByPassId(passid);
	}

	@Override
	public int addAdminUser(AdminUser adminUser) {
		return userRegisterDao.addAdminUser(adminUser);
	}

}
